package org.realogic.btp.web;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 后台管理-页面导航控制器
 */
@Controller
@RequestMapping("/page")
public class NavigationController {

	@RequestMapping(value = "/forword")
	public String forword(HttpServletRequest request) {
		String path = request.getParameter("page");
		if(path==null || "".equals(path)){
			return "/main.do";
		}
		return "forward:/"+path;
	}

}
